﻿using System.Xml.Serialization;

namespace Zipun.VkOnlineMusic.Api.Domain
{
    public class VkAudio
    {
        [XmlElement("aid")]
        public uint Id { get; set; }
        [XmlElement("owner_id")]
        public uint OwnerId { get; set; }
        [XmlElement("artist")]
        public string Artist { get; set; }
        [XmlElement("title")]
        public string Title { get; set; }
        [XmlElement("duration")]
        public string Duration { get; set; }
        [XmlElement("url")]
        public string Url { get; set; }
        [XmlElement("lyrics_id")]
        public string LyricsId { get; set; }
        [XmlIgnore]
        public string DisplayedName
        {
            get { return string.Format("{0} - {1}", Artist, Title); }
        }
    }
}